/*
 * @Description: 方法
 * @Author: rendc
 * @Date: 2023-11-17 19:41:16
 * @LastEditors: rendc
 * @LastEditTime: 2023-11-18 08:10:33
 */

public class Test4 {
  public static void main(String[] args) {
    int c = myAdd(1,2);
    int d = myAdd(1,2,3);
    System.out.println(c);
  }
  public static int myAdd(int x,int y){
    return x+y;
  }
  public static int myAdd(int x,int y,int z){
    return x+y+z;
  }
}


